<template>
	<div class="purchase-price">
		<div class="purchase-price-shops">
			<span>商品金额</span>
			<span>{{total | formatMoney}}</span>
		</div>
		<div class="purchase-price-shops" v-if="isNeedLogistics">
			<span>运费</span>
			<span>{{amountLogistics | formatMoney}}</span>
		</div>
		<div class="purchase-price-shops" v-if="false">
			<span>优惠券</span>
			<span>{{total | formatMoney}}</span>
		</div>
	</div>
</template>

<script>
	export default {
		name: "purchasePrice",
		props: {
			total: {
				type: Number,
				required: true
			},
			isNeedLogistics: {
				type: Boolean
			},
			amountLogistics: {
				type: [Number, String]
			}
		}
	}
</script>
